package com.xoms.admin.model.vo;

/**
 * 返回采购单详情信息
 * 
 * @author chengl
 *
 */
public class BatchStockInBean {
	private String stockInId;// 采购单id
	private String productId; // 商品id
	private Double price;// 采购价格
	private Integer pureNumber;// 采购数量
	private Integer number;// 实际数量
	private Integer staleTime; // 保存期限
	public String getStockInId() {
		return stockInId;
	}
	public void setStockInId(String stockInId) {
		this.stockInId = stockInId;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getPureNumber() {
		return pureNumber;
	}
	public void setPureNumber(Integer pureNumber) {
		this.pureNumber = pureNumber;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public Integer getStaleTime() {
		return staleTime;
	}
	public void setStaleTime(Integer staleTime) {
		this.staleTime = staleTime;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((productId == null) ? 0 : productId.hashCode());
		result = prime * result + ((stockInId == null) ? 0 : stockInId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BatchStockInBean other = (BatchStockInBean) obj;
		if (productId == null) {
			if (other.productId != null)
				return false;
		} else if (!productId.equals(other.productId))
			return false;
		if (stockInId == null) {
			if (other.stockInId != null)
				return false;
		} else if (!stockInId.equals(other.stockInId))
			return false;
		return true;
	}
	
	
}
